<div class="comments">
	<ol class="comments-list">
		<?php foreach ($comments as $comment): ?>
		<li class="comment">
			<a name="comment<?=$comment->id;?>"></a>

			<div class="avatar" style="text-align: center;">
				<a alt="<?= $comment->owner->username; ?>" class='' href="/user/<?= $comment->owner->id;?>">
					<? $this->widget('ext.gravatar.Gravatar', array("size" => 45, 'email' => $comment->owner->email, 'htmlOptions' => array('alt' => $comment->owner->username))); ?>
				</a>
			</div>
			<div class="comment-body" style="width:585px; ">
				<h4 class="author"><a href="/user/<?= $comment->owner->id;?>"><?= $comment->owner->username; ?></a></h4>

				<p class="meta"><?= DateTimer::getPeriod($comment->t_create); ?></p>

				<div>
					<?= YText::cleanRepair($comment->text);?>
				</div>
			</div>
			<div style="width:100px;float: right;text-align: center;">
				<?
				$this->widget("UserRating", array(
				                                 "item_id" => $comment->id, "type" => Rating::TYPE_COMMENT, 'rating' => $comment->rating,
				                                 'is_down' => Y::userId() !== $comment->owner_id && empty($comment->rt)
				                            ));
				?>
			</div>
		</li>
		<?php endforeach; ?>
	</ol>
</div>
